<?php
/**
 * Search a Medical Center
 *
 * @author Xavier VILAIN
 * @package Nawa
 * @subpackage MedicalCenter
 * @license
 *
 */

use Fox\SearchEngine;
use Nawa\MedicalCenter;
use Fox\Generator;
use Nawa\Messages;
use Fox\Msg;
use Fox\Dao\SqlFragment;
use Nawa\Customer;
use Fox\Html\Button;

$searchScreen = new Fox\Html\Screen\Search\Basic('search',new MedicalCenter(),null,null,10);
$searchScreen->screen()->pageTitle(Msg(Messages::BUNDLE,Messages::TITLE_SEARCH_MEDICAL_CENTERS));
$searchScreen->screen()->toolbar()->add(new Button('create',Generator::url('medicalcenters','create')));
$searchScreen->grid(Xview::instance()->component('medicalcenters','result'));
$searchScreen->searchEngineOptions(SearchEngine::MODE_LIKE);
echo $searchScreen->render();